package com.zy.imagineCommunity.entity;

public class Message {

    Integer id ;

    Integer fromId;

    Integer toId;

    String fromToId;

    String content;

    String createTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getFromId() {
        return fromId;
    }

    public void setFromId(Integer fromId) {
        this.fromId = fromId;
    }

    public Integer getToId() {
        return toId;
    }

    public void setToId(Integer toId) {
        this.toId = toId;
    }

    public String getFromToId() {
        return fromToId;
    }

    public void setFromToId(String fromToId) {
        this.fromToId = fromToId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public Message(Integer id, Integer fromId, Integer toId, String fromToId, String content, String createTime) {
        this.id = id;
        this.fromId = fromId;
        this.toId = toId;
        this.fromToId = fromToId;
        this.content = content;
        this.createTime = createTime;
    }

    public Message() {

    }

    @Override
    public String toString() {
        return "message{" +
                "id=" + id +
                ", fromId=" + fromId +
                ", toId=" + toId +
                ", fromToId=" + fromToId +
                ", content='" + content + '\'' +
                ", createTime='" + createTime + '\'' +
                '}';
    }

}
